package cn.kgc.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName Student
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2020/11/13 15:55
 * @Version 1.0
 **/
@Component
public class Student {
    @Value("${student.name}")
    private String name;
    @Value("${student.age}")
    private int age;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
